package app.vendorportal.api.marketplace.data.response;

import app.vendorportal.api.marketplace.data.OrderSubmissionStatus;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

/**
 * @author carl.you
 */
@XmlRootElement(name = "find-order-submission-status-response")
@XmlAccessorType(XmlAccessType.FIELD)
public class FindOrderSubmissionStatusResponse {

    @XmlElementWrapper(name = "results")
    @XmlElement(name = "result")
    private final List<OrderSubmissionStatus> results = new ArrayList<>();

    public List<OrderSubmissionStatus> getResults() {
        return results;
    }
}
